package org.ymjava.medical.db.AllPackage.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import javax.persistence.*;


/**
 * 
 * 
 * @author zhy
 * @email ${email}
 * @date 2020-03-30 13:12:23
 */
@Table(name = "question_bank")
public class QuestionBank implements Serializable {
	private static final long serialVersionUID = 1L;
	
	    //
    @Id
    private Integer id;
	
	    //备考类型id
    @Column(name = "prepare_id")
    private Integer prepareId;
	
	    //名称
    @Column(name = "name")
    private String name;
	
	    //排序字段
    @Column(name = "sort")
    private Integer sort;
	
	    //逻辑删除
    @Column(name = "deleted")
    private Integer deleted;
	
	    //添加时间
    @Column(name = "add_time")
    private Date addTime;

	@Transient
	private List<NurseQuestion> questionLists;

	public List<NurseQuestion> getQuestionLists() {
		return questionLists;
	}

	public void setQuestionLists(List<NurseQuestion> questionLists) {
		this.questionLists = questionLists;
	}

	/**
	 * 设置：
	 * 设置：
	 */
	public void setId(Integer id) {
		this.id = id;
	}
	/**
	 * 获取：
	 */
	public Integer getId() {
		return id;
	}
	/**
	 * 设置：备考类型id
	 */
	public void setPrepareId(Integer prepareId) {
		this.prepareId = prepareId;
	}
	/**
	 * 获取：备考类型id
	 */
	public Integer getPrepareId() {
		return prepareId;
	}
	/**
	 * 设置：名称
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * 获取：名称
	 */
	public String getName() {
		return name;
	}
	/**
	 * 设置：排序字段
	 */
	public void setSort(Integer sort) {
		this.sort = sort;
	}
	/**
	 * 获取：排序字段
	 */
	public Integer getSort() {
		return sort;
	}
	/**
	 * 设置：逻辑删除
	 */
	public void setDeleted(Integer deleted) {
		this.deleted = deleted;
	}
	/**
	 * 获取：逻辑删除
	 */
	public Integer getDeleted() {
		return deleted;
	}
	/**
	 * 设置：添加时间
	 */
	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}
	/**
	 * 获取：添加时间
	 */
	public Date getAddTime() {
		return addTime;
	}
}
